/* 
 * File:   VectorToScalarDataset.h
 * Author: cjjonker
 *
 * Created on 4 januari 2013, 16:57
 */

#ifndef VECTORTOSCALARDATASET_H
#define	VECTORTOSCALARDATASET_H

#include "ScalarDataset.h"
#include "Vector.h"


class VectorToScalarDataset: public ScalarDataset {

    
    double* d_x;
    double* d_y;
    int d_type;
    
    
public:
    
    enum Type
    {
        Magnitude,
        Angle,
        TypeCount
    };
    VectorToScalarDataset(double* x, double* y, int dim);
    VectorToScalarDataset(double* x, double* y, int dim, Type t);
    
    double getData(int idx);
    Vector2f getVectorData(int idx);
    
private:
    

};

inline Vector2f VectorToScalarDataset::getVectorData(int idx) { return Vector2f(d_x[idx], d_y[idx]); }

#endif	/* VECTORTOSCALARDATASET_H */

